package org.jason.model.article.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("审核文章参数")
public class ExamineDto {

    @ApiModelProperty("文章id")
    @Min(value = 1, message = "参数不规范")
    @NotNull
    private Integer articleId;

    @ApiModelProperty("文章审核状态 0-通过 1-打回")
    @Min(value = 0,message = "参数不规范")
    @Max(value = 1,message = "参数不规范")
    @NotNull
    private Integer status;

    @ApiModelProperty("打回详情")
    private String details;
}
